<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru">
<head>
  <title>{% block title %}{% endblock %}</title>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  <link rel="stylesheet" type="text/css" href="{% load media %}{% media_prefix %}css/homesite.css">
  <link rel="stylesheet" type="text/css" href="{% block appstylesheet %}{% endblock %}">
  {% block appjs %}{% endblock %}
  {% block extrastyle %}{% endblock %}
  {% block extrahead %}{% endblock %}
  {% block extrajs %}{% endblock %}
</head>
<body>
<div id="site_title"><h1><a href="/">Germanium</a></h1><h5>Homesite</h5></div>
{% if user.is_authenticated %}
<div id="user_menu">Зарегистрированы как <b>{{ user.username }}</b> |{# <a href="">Профиль</a> |#} <a href="{% url django.contrib.auth.views.logout %}">Выход</a></div>
{% endif %}
{% block globalconteiner %}
{% endblock %}

<DIV id="meta">
  {% if debug %}
  <div class="info">
  <p>
    {{ sql_queries|length }} Quer{{ sql_queries|pluralize:"y,ies" }}
    {% ifnotequal sql_queries|length 0 %}
    (<span style="cursor: pointer;" onclick="var s=document.getElementById('debugQueryTable').style;s.display=s.display=='none'?'':'none';this.innerHTML=this.innerHTML=='Show'?'Hide':'Show';">Show</span>)
    {% endifnotequal %}
  </p>
  <table id="debugQueryTable" style="display: none;">
    <col width="1"></col>
    <col></col>
    <col width="1"></col>
    <thead>
    <tr>
      <th scope="col">#</th>
      <th scope="col">SQL</th>
      <th scope="col">Time</th>
    </tr>
    </thead>
    <tbody>
    {% for query in sql_queries %}<tr>
      <td>{{ forloop.counter }}</td>
      <td>{{ query.sql|escape }}</td>
      <td>{{ query.time }}</td>
    </tr>{% endfor %}
    </tbody>
  </table>
  </div>
  {% endif %}
  <div class="version">
   <p>{% block system_version %}HomeSite. {{ version_string }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20.10.2010{% endblock %}</p>
   <p>{% block component_version %}{% endblock %}</p>
  </div> 
</DIV>

</body>
</html>